//
//  F37CheckCell.m
//  PDA巡检
//
//  Created by Vencoo on 14-2-23.
//  Copyright (c) 2014年 Vencoo. All rights reserved.
//

#import "F37CheckCell.h"

@implementation F37CheckCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        UIImage *lineImage = [UIImage imageNamed:@"黑边框"];
        self.frame = CGRectMake(0, 0, lineImage.size.width, 50);
        
        _floorNameLb = [UILabel new];
        _floorNameLb.font = [UIFont systemFontOfSize:25];
        CGSize size = [[NSString stringWithFormat:@"啊啊啊啊啊啊啊啊啊啊啊"]sizeWithFont:_floorNameLb.font constrainedToSize:CGSizeMake(MAXFLOAT, 40)];
        _floorNameLb.frame = CGRectMake(0, (self.frame.size.height - 30)/2, size.width, size.height);
        _floorNameLb.textAlignment = 1;
        [self.contentView addSubview:_floorNameLb];
        
        _remarkLb = [UILabel new];
        _remarkLb.font = [UIFont systemFontOfSize:25];
        size = [[NSString stringWithFormat:@"啊啊啊啊啊啊啊"]sizeWithFont:_remarkLb.font constrainedToSize:CGSizeMake(MAXFLOAT, 40)];
        _remarkLb.frame = CGRectMake(400, (self.frame.size.height - 30)/2, size.width, size.height);
        _remarkLb.textAlignment = 1;
        [self.contentView addSubview:_remarkLb];

    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)dealloc {
    [_remarkLb release];
    [_floorNameLb release];
    [super dealloc];
}
@end
